'use strict';

module.exports = appInfo => {
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1529233139444_8989';

  // add your config here
  config.middleware = [];

  exports.sequelize = {
    dialect: 'mysql', // support: mysql, mariadb, postgres, mssql
    database: 'DiDa_Pro',
    host: '111.231.66.71',
    port: '3306',
    username: 'root',
    password: 'fanhuaze19283755',

    timezone: '+08:00' //东八时区
  };

  config.security = {
    csrf: {
      enable: false,
    },
    domainWhiteList: [ 'http://localhost/' ],
  };

  return config;
};
